package com.project.business.service.impl;

import com.baomidou.mybatisplus.solon.service.impl.ServiceImpl;
import com.project.business.mapper.DeptEntityMapper;
import com.project.business.entity.DeptEntity;
import com.project.business.service.DeptEntityService;
import com.common.exception.ErrCode;
import org.noear.solon.annotation.Component;

@Component
public class DeptEntityServiceImpl extends ServiceImpl<DeptEntityMapper, DeptEntity>
        implements DeptEntityService {

    @Override
    public void edit(Integer id, DeptEntity entity) {
        ErrCode.Request_Param.nonNull(id, "部门 id 不能为空");
        ErrCode.Request_Param.nonNull(entity, "部门信息不能为空");
        entity.setId(id);
        this.updateById(entity);
    }
}




